﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.ModFlow.Application
{
  public  class Grid3dTVM:HViewModel
    {

      public Grid3dTVM()
      {
 
      }



      GRID3DTOOLS _tool;

      public GRID3DTOOLS Tool
      {
          get { return _tool; }
          set { _tool = value;
          this.OnPropertyChanged("IsAddCol");
          this.OnPropertyChanged("IsAddRow");
          this.OnPropertyChanged("IsSelectLayer");
          this.OnPropertyChanged("IsSelectCol");
          this.OnPropertyChanged("IsSelectRow");
          this.OnPropertyChanged("IsSelectCell");
          this.OnPropertyChanged("IsSelectCross");
          }
      }

      bool _isSelectCell;

      public bool IsSelectCell
      {
          get
          {
              if (this.Tool == GRID3DTOOLS.SELECTCELL)
              {
                  return true;
              }
              else
              {
                  return false;
              }
          }
          set
          {
              this.Tool = GRID3DTOOLS.SELECTCELL;
              
          }
      }
      bool _isSelectCross;

      public bool IsSelectCross
      {
          get
          {
              if (this.Tool == GRID3DTOOLS.SELECTCROSS)
              {
                  return true;
              }
              else
              {
                  return false;
              }
          }
          set
          {
              this.Tool = GRID3DTOOLS.SELECTCROSS;
           
          }
      }
      bool _isSelectRow;

      public bool IsSelectRow
      {
          get
          {
              if (this.Tool == GRID3DTOOLS.SELECTROW)
              {
                  return true;
              }
              else
              {
                  return false;
              }
          }
          set
          {
              this.Tool = GRID3DTOOLS.SELECTROW;
            
          }
      }
      bool _isSelectCol;

      public bool IsSelectCol
      {
          get
          {
              if (this.Tool == GRID3DTOOLS.SELECTCOL)
              {
                  return true;
              }
              else
              {
                  return false;
              }
          }
          set
          {
              this.Tool = GRID3DTOOLS.SELECTCOL;
             
          }
      }
      bool _isSelectLayer;

      public bool IsSelectLayer
      {
          get
          {
              if (this.Tool == GRID3DTOOLS.SELECTLAYER)
              {
                  return true;
              }
              else
              {
                  return false;
              }
          }
          set
          {
              this.Tool = GRID3DTOOLS.SELECTLAYER;
             
          }
      }
      bool _isAddRow;

      public bool IsAddRow
      {
          get
          {
              if (this.Tool == GRID3DTOOLS.ADDROW)
              {
                  return true;
              }
              else
              {
                  return false;
              }
          }
          set
          {
              this.Tool = GRID3DTOOLS.ADDROW;
            
          }
      }
      bool _isAddCol;

      public bool IsAddCol
      {
          get
          {
              if (this.Tool == GRID3DTOOLS.ADDCOL)
              {
                  return true;
              }
              else
              {
                  return false;
              }
          }
          set
          {
              this.Tool = GRID3DTOOLS.ADDCOL;
             
          }
      }

      

            

    }
}
